﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.ForumTopicControl"
    CodeBehind="ForumTopic.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="ForumPost" Src="~/Modules/ForumPost.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ForumBreadcrumb" Src="~/Modules/ForumBreadcrumb.ascx" %>
<div class="forumtopic">
    <nopCommerce:ForumBreadcrumb ID="ctrlForumBreadcrumb" runat="server" />
    <div class="title">
        <asp:Label ID="lblTopicSubject" runat="server" CssClass="topicname" />
        <div class="manage">
            <asp:LinkButton runat="server" ID="btnEdit" Text="Edit" OnClick="btnEdit_Click" SkinID="EditTopicLinkButton" />
            <asp:LinkButton runat="server" ID="btnDelete" Text="Delete" OnClick="btnDelete_Click"
                SkinID="DeleteTopicLinkButton" />
            <asp:LinkButton runat="server" ID="btnMoveTopic" Text="Move topic" OnClick="btnMoveTopic_Click"
                SkinID="MoveTopicLinkButton" />
        </div>
    </div>
    <div class="clear">
    </div>
    <div class="topicheader">
        <div class="topicoptions">
            <asp:LinkButton runat="server" ID="btnReply" Text="Reply" OnClick="btnReply_Click"
                SkinID="ReplyTopicLinkButton" />
            <asp:LinkButton runat="server" ID="btnWatchTopic" Text="Watch topic" OnClick="btnWatchTopic_Click"
                SkinID="WatchTopicLinkButton" />
        </div>
        <div class="pager">
            <nopCommerce:Pager runat="server" ID="postsPager1" QueryStringProperty="p" />
        </div>
    </div>
    <div class="clear">
    </div>
    <div class="posts">
        <asp:Repeater ID="rptrPosts" runat="server">
            <ItemTemplate>
                <nopCommerce:ForumPost ID="ctrlForumPost" runat="server" ForumPost='<%# Container.DataItem %>' />
            </ItemTemplate>
        </asp:Repeater>
    </div>
</div>
<div class="topicfooter">
    <div class="topicoptions">
        <asp:LinkButton runat="server" ID="btnReply2" Text="Reply" OnClick="btnReply_Click"
            SkinID="ReplyTopicLinkButton" />
        <asp:LinkButton runat="server" ID="btnWatchTopic2" Text="Watch topic" OnClick="btnWatchTopic_Click"
            SkinID="WatchTopicLinkButton" />
    </div>
    <div class="pager">
        <nopCommerce:Pager runat="server" ID="postsPager2" QueryStringProperty="p" />
    </div>
</div>
<div class="clear">
</div>
